package com.tongfusoft.document.manager.role.service;

import java.util.List;

import com.tongfusoft.da.pagehelper.PageInfo;
import com.tongfusoft.document.entity.Privilege;
import com.tongfusoft.document.entity.RoleHasPrivileges;
import com.tongfusoft.spring.web.core.data.User;

public interface IRolePrivilegeService {
	/**
	 * 新增角色权限
	 * @param role
	 * @param user
	 */
	public void addRolePrivileges(User user,String roleId,List<String> privileges); 
	
	/**
	 * 删除角色权限
	 * @param user
	 * @param rpId
	 */
	public void delRolePrivilege(User user,String rpId);
	
	/**
	 * 获取角色包含的权限列表
	 * @param roleId
	 * @return
	 */
	public PageInfo<RoleHasPrivileges> privilegesListByRoleIdPageTable(int pageIndex,int pageSize,String roleId);
	
	/**
	 * 获取角色可选的权限列表
	 * @param roleId
	 * @return
	 */
	public List<Privilege> altPrivilegesListByRoleId(String roleId);
}
